home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / tusrc.zip / CONFIG~1.IN < prev    next >
Text File  |  1993-09-18  |  1KB  |  54 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(src/fold.c)
  3.  
  4. # We want these before the checks, so the checks can modify their values.
  5. test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  6. test -z "$LDFLAGS" && LDFLAGS=-g
  7.  
  8. AC_PROG_CC
  9.  
  10. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  11. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  12.  
  13. AC_SUBST(CFLAGS)dnl
  14. AC_SUBST(LDFLAGS)dnl
  15.  
  16. AC_PROG_CPP
  17. AC_GCC_TRADITIONAL
  18. AC_PROG_INSTALL
  19. AC_PROG_RANLIB
  20. AC_AIX
  21. AC_MINIX
  22. AC_ISC_POSIX
  23. AC_RETSIGTYPE
  24. AC_SIZE_T
  25. AC_CONST
  26. AC_LONG_DOUBLE
  27. AC_STDC_HEADERS
  28. AC_UNISTD_H
  29. AC_WORDS_BIGENDIAN
  30. AC_HAVE_HEADERS(limits.h string.h memory.h fcntl.h)
  31. AC_REPLACE_FUNCS(bcopy memcmp memset stpcpy strtoul)
  32. echo "checking if memcmp is 8-bit clean"
  33. AC_TEST_PROGRAM([
  34. main()
  35. {
  36.   char c1 = 0x80, c2 = 0x81;
  37.   exit(memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  38. }
  39. ],[
  40. test -n "$verbose" && echo memcmp is 8-bit clean
  41. ],[
  42. test -n "$verbose" && echo memcmp is NOT 8-bit clean -- using replacement
  43. case "$LIBOBJS" in
  44. *memcmp*) ;;
  45. *) LIBOBJS="$LIBOBJS memcmp.o" ;;
  46. esac
  47. ])
  48. AC_HAVE_FUNCS(strerror)
  49. AC_VPRINTF
  50. AC_ALLOCA
  51. AC_ST_BLKSIZE
  52. AC_XENIX_DIR
  53. AC_OUTPUT(Makefile lib/Makefile src/Makefile man/Makefile)
  54.